package cn.org.mrliu.ssm.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.org.mrliu.ssm.common.web.vo.ResponseMessage;

@Controller
@RequestMapping("/testEx")
public class TestExceptionController {
	//private final static Logger log = LoggerFactory.getLogger(TestExceptionController.class);
	@RequestMapping("/test")
	@ResponseBody
	public ResponseMessage test1(String msg) {
		System.out.println(1/0);
		return new ResponseMessage("操作成功!");
	}
	@RequestMapping("/test1")
	@ResponseBody
	public ResponseMessage test2(String msg) {
		String string = null;
		System.out.println(string.length());
		return new ResponseMessage("操作成功!");
	}
}
